package com.zhan.ielts.service;

import java.io.UnsupportedEncodingException;
import java.util.Map;

import net.sf.json.JSONObject;

import org.springframework.data.domain.Pageable;

import com.zhan.frame.core.dao.BaseService;
import com.zhan.ielts.domain.Merchandise;
import com.zhan.ielts.domain.TradeInfo;
import com.zhan.ielts.domain.vo.TradeInfoVo;

public interface TradeInfoService extends BaseService<TradeInfo> {

	public Map fetchTradeInfo(TradeInfoVo query, Pageable pageable);

	public String generateOrderInfo(String userId, Merchandise merchandise) throws UnsupportedEncodingException;

	public String verifyOrderInfo(TradeInfoVo entity);

	public JSONObject iapVerify(String userId, String type, String subject, String receiptData);

}
